//
// Created by wkm on 2024-04-17.
//

#include "xBtime_test.h"

void xBtime_test() {
    sc_clock clk("my_clk", 2, SC_NS);
    sc_signal<bool> start, reset;
    sc_signal <sc_uint<DATA_SIZE>> input_data, result;
    sc_signal <exe_state> done;

    xBtime my_xBtime("my_xBtime");
    my_xBtime.start(start);
    my_xBtime.reset(reset);
    my_xBtime.clk(clk);
    my_xBtime.input_data(input_data);
    my_xBtime.result(result);
    my_xBtime.done(done);

    xBtime_driver my_xBtime_driver("my_xBtime_driver");
    my_xBtime_driver.d_start(start);
    my_xBtime_driver.d_reset(reset);
    my_xBtime_driver.d_clk(clk);
    my_xBtime_driver.d_input_data(input_data);

    xBtime_monitor my_xBtime_monitor("my_xBtime_monitor");
    my_xBtime_monitor.m_result(result);
    my_xBtime_monitor.m_done(done);

    sc_start();
}